import * as client from './client'
import urlConfig from './urlConfig'

export class res {
    public payAmount: number;

}
export class paymentList {
    public isSuccess: number;
    //状态码？
    public code: string;
    //描述
    public description: string;
    //返回数据
    public resData: payList;
}

export class payList {
    public payTypes: Array<string>;

}

/**
 * 获取数据
 * @param rst 参数
 */
export async function exec(rst: res) {
    const data = await client.exec(urlConfig.payMethodList, rst);
    //return JSON.parse(data) as client.RSM<OrderRpn>;
    return JSON.parse(data) as paymentList;
}